package modelLayer;

public class Product {
	private int productId;
	private String carBrand;
	private String carModel;
	private String engineType;
	private String partName;
	private double price;
	private int stockQuantity;
	
	public Product() {
		productId = -1;
		carBrand = "";
		carModel = "";
		engineType = "";
		partName = "";
		price = 0;
		stockQuantity = 0;
	}
	public Product(int productId, String carBrand, String carModel, String engineType, String partName, double price, int stockQuantity) {
		this.productId = productId;
		this.carBrand = carBrand != null ? carBrand.toUpperCase() : "";
		this.carModel = carModel != null ? carModel.toUpperCase() : "";
		this.engineType = engineType != null ? engineType.toUpperCase() : "";
		this.partName = partName != null ? partName.toUpperCase() : "";
		this.price = price;
		this.stockQuantity = stockQuantity;
	}
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public String getCarBrand() {
		return carBrand;
	}
	public void setCarBrand(String carBrand) {
		this.carBrand = carBrand.toUpperCase();
	}
	public String getCarModel() {
		return carModel;
	}
	public void setCarModel(String carModel) {
		this.carModel = carModel.toUpperCase();
	}
	public String getEngineType() {
		return engineType;
	}
	public void setEngineType(String engineType) {
		this.engineType = engineType.toUpperCase();
	}
	public String getPartName() {
		return partName;
	}
	public void setPartName(String partName) {
		this.partName = partName.toUpperCase();
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getStockQuantity() {
		return stockQuantity;
	}
	public void setStockQuantity(int stockQuantity) {
		this.stockQuantity = stockQuantity;
	}
	
}
